<div id="icon-edit" class="icon32 icon32-posts-post"><br></div>
<h2>新闻</h2>
<table id="report_table" cellspacing="0" class="wp-list-table widefat fixed posts">
    <tbody>
    <?php foreach ($data as $i => $row): ?>
    <?php $row = $row['News']?>
    <tr <?php echo $i%2==0? 'class="alt"': ''?>>
        <td><?php echo h($row['id']); ?>&nbsp;</td>
        <td><?php echo h($row['title']); ?></td>
        <td><?php echo h($categories[$row['news_category_id']]); ?></td>
        <td><?php echo h($row['priority']); ?></td>
        <td><?php echo date('Y-m-d H:i:s', $row['created']); ?>&nbsp;</td>
        <td><?php echo date('Y-m-d H:i:s', $row['updated']); ?></td>
        <td class="actions">
            <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $row['id'])); ?>|
            <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $row['id']), null, __('Are you sure you want to delete # %s?', $row['id'])); ?>
        </td>
    </tr>
<?php endforeach; ?>
    </tbody>
    <thead>
        <tr>
            <th><?php echo $this->Paginator->sort('id'); ?></th>
            <th>新闻标题</th>
            <th>新闻类别</th>
            <th>优先级</th>
            <th><?php echo $this->Paginator->sort('created', '创建时间'); ?></th>
            <th><?php echo $this->Paginator->sort('updated', '最后更新'); ?></th>
            <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
    </thead>
    <tfoot>
        <tr>
            <th><?php echo $this->Paginator->sort('id'); ?></th>
            <th>新闻标题</th>
            <th>新闻类别</th>
            <th>优先级</th>
            <th><?php echo $this->Paginator->sort('created', '创建时间'); ?></th>
            <th><?php echo $this->Paginator->sort('updated', '最后更新'); ?></th>
            <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
    </tfoot>
</table>
<?php echo $this->Paginator->numbers()?>
